package com.framework.modules.guild.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.framework.common.utils.PageUtils;
import com.framework.common.utils.Query;

import com.framework.modules.guild.dao.GuildMembersDao;
import com.framework.modules.guild.entity.GuildMembersEntity;
import com.framework.modules.guild.service.GuildMembersService;


@Service("guildMembersService")
public class GuildMembersServiceImpl extends ServiceImpl<GuildMembersDao, GuildMembersEntity> implements GuildMembersService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<GuildMembersEntity> page = this.selectPage(
                new Query<GuildMembersEntity>(params).getPage(),
                new EntityWrapper<GuildMembersEntity>()
        );

        return new PageUtils(page);
    }

}
